package com.ruoyi.msg.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 题库管理业务对象 msg_dcwj_tk
 *
 * @author xiaohao
 * @date 2023-02-01
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class MsgDcwjTkBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 题型
     */
    @NotBlank(message = "题型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String type;

    /**
     * 总分
     */
    @NotNull(message = "总分不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long score;

    /**
     * 是否必答
     */
    @NotBlank(message = "是否必答不能为空", groups = {AddGroup.class, EditGroup.class})
    private String must;

    /**
     * 题目
     */
    @NotBlank(message = "题目不能为空", groups = {AddGroup.class, EditGroup.class})
    private String topic;

    /**
     * 选项排列
     */
    @NotBlank(message = "选项排列不能为空", groups = {AddGroup.class, EditGroup.class})
    private String format;


}
